<?php

namespace App\Libraries\DataBase\Schema;

use Illuminate\Database\Schema\Blueprint;

trait hasEditEnableAttribute
{
    public function hasEditEnable(Blueprint $table, $column = 'edit_enable', $default = 1, $comment = '允许编辑')
    {
        $table->integer($column)->default($default)->comment($comment);
    }
}
